package com.example.thread;

/**
 * @author liguoping
 */
public class UserThreadLocal {
    public static ThreadLocal<String> userIdThreadLocal = new ThreadLocal<>();

    public static String get() {
        return userIdThreadLocal.get();
    }

    public static void set(String id) {
        userIdThreadLocal.set(id);
    }

    public static void remove() {
        userIdThreadLocal.remove();
    }
}
